package com.zscat.mallplus.pms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zscat.mallplus.utils.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 产品评价回复表
 * </p>
 *
 * @author zscat
 * @since 2019-04-19
 */
@Data
@ApiModel
@TableName("pms_comment_replay")
public class PmsCommentReplay extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(hidden = true)
    private Long id;

    @TableField("comment_id")
    @ApiModelProperty(value = "评价ID", required = true)
    private Long commentId;

    @TableField("member_nick_name")
    @ApiModelProperty(hidden = true)
    private String memberNickName;

    @TableField("member_icon")
    @ApiModelProperty(hidden = true)
    private String memberIcon;

    @TableField("content")
    @ApiModelProperty(value = "内容", required = true)
    private String content;

    @TableField("create_time")
    @ApiModelProperty(hidden = true)
    private Date createTime;

    /**
     * 评论人员类型；0->会员；1->管理员
     */
    @TableField("type")
    @ApiModelProperty(hidden = true)
    private Integer type;
}
